﻿<%@ Page PathInChannel="{ID}{Ext}" Object="Download" %>
<%@ OutputCache Duration="86400" VaryByParam="none" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Download" Object="Download" PageID="Request.QueryString['ID']" ForMeta="true" />
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=MetaKeywords%>" />
<meta name="description" content="<%=MetaDescription%>" />
<title><%=Download[Name]%> - <%=Download[CategoryName]%> - <%=Channel[Name]%> - <%=Site[Name]%></title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script language="c#" runat="server">
protected string CalcSize(object size)
{
	float s = Convert.ToSingle(size);
	if (s > 1024)
		return (s / 1024).ToString(".00") + " MB";
	else
		return size + " KB";
}
</script>
<script type="text/javascript">
var _page = "download";
var _webPath = "<%=WebPath%>";
var _lang = "<%=PageLang%>";
var _id = "<%=Download[InnerID]%>";
var _guid = "<%=Download[ID]%>";
var _commentPage = "<%=BuildUrl("ajax_download_comment")%>";
var _checkComment = <%=Config[CheckComment]%>;
var _lang_copy = "下载地址已复制，粘贴给好友请按Crtl+V。";
var _lang_name = "名称不能为空！";
var _lang_password = "密码不能为空！";
var _lang_content = "内容不能为空！";
var _lang_cant_login = "会员名或密码有误！";
var _lang_cant_post_comment = "发表评论失败！";
var _lang_post_comment_success = "发表评论成功！";
</script>
</head>
<body>
<!-- TemplateBeginEditable name="菜单" -->
<div class="Wrap">
	<ali:Menu Condition="IsDisplay=true and CategoryID IS NULL and ParentID IS NULL">
		<div class="Menu">
			<ali:Record>
				<ali:Select>
					<ali:Yes>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><strong><%=Name%></strong></a>
					</ali:Yes>
					<ali:No>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
					</ali:No>
				</ali:Select>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</ali:Menu>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：下载 - Banner" -->
<div class="Wrap">
	<div class="Ad1">
		<ali:Ad Guid="{DE599B30-A477-4d86-AB90-B0C329F75831}">
			<a href="http://www.alibaza.com" target="_blank"><img src="<%=ImagePath%>ad/ad1.jpg" alt="Ad" style="width:980px;height:100px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="下载类别" -->
<ali:List Object="Category" Condition="IsDisplay=true and ParentID IS NULL">
	<div class="Wrap">
		<div class="SubMenu">
			<ali:Record>
				<a href="<%=BuildUrl()%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="搜索" -->
<div class="Wrap">
	<form id="Search" action="<%=BuildUrl("search")%>" target="_blank">
		关键词：
		<input type="text" name="q" size="20" class="Text <%=PageLang%>Font" />
		<input type="submit" value="搜 索" class="Submit" />
		<span>推荐：
			<ali:List Object="Download" Page="1" PageSize="3" Condition="IsDeleted=false and IsChecked=true and Hold > 0" Sort="UpdateTime DESC">
				<ali:Record>
					<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a>
				</ali:Record>
			</ali:List>
		</span>
	</form>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="路径" -->
<div class="Wrap">
	<div class="Path">当前位置：
		<ali:Path Object="Category" Guid="Download[CategoryID]">
			<ali:Record>
				<a href="<%=URL%>" title="<%=Name%>"><%=Name%></a> &gt; 
			</ali:Record>
		</ali:Path>
		<%=Download[Name]%>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：下载 - 路径下方" -->
<div class="Wrap">
	<div class="Ad4">
		<ali:Ad Guid="{9C24E2D0-1C90-41ca-8D37-F941E499F633}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad9.jpg" alt="Ad" style="width:980px;height:70px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Block3">
		<div class="Block1">
			<!-- TemplateBeginEditable name="广告位：下载 - 侧栏顶部" -->
			<div class="Ad3">
				<ali:Ad Guid="{B681F2AF-3972-42c9-89CA-7409D1BC2A0E}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad4.gif" alt="Ad" style="width:220px;height:80px" /></a>
				</ali:Ad>
			</div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="点击排行" -->
			<h2>点击排行</h2>
			<ali:List Object="Download" Page="1" PageSize="15" Condition="IsDeleted=false and IsChecked=true" Sort="HitCount DESC">
				<ul class="List6">
					<ali:Record>
						<li><a href="<%=BuildUrl()%>" title="<%=Name%>" class="No<%=Index + 1%>"><%=Name%></a><span><%=HitCount%></span></li>
					</ali:Record>
				</ul>
			</ali:List>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="最新更新" -->
			<h2>最新更新</h2>
			<ali:List Object="Download" Page="1" PageSize="10" Condition="IsDeleted=false and IsChecked=true" Sort="UpdateTime DESC">
				<ul class="List5">
					<ali:Record>
						<li><a href="<%=BuildUrl()%>" title="<%=Name%>"><%=Name%></a><span>(<%=Convert.ToDateTime(UpdateTime).ToString("MM-dd")%>)</span></li>
					</ali:Record>
				</ul>
			</ali:List>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="常用软件下载" -->
			<h2>常用软件下载</h2>
			<ali:Menu Condition="IsDisplay=true and CategoryID={4A99A80B-BA2D-464b-BAB6-68F102DA53A3}">
				<ul class="List1">
					<ali:Record>
						<li><a href="<%=URL%>" title="<%=Name%>"><img src="<%=Picture%>" alt="<%=Name%>" /></a></li>
					</ali:Record>
				</ul>
			</ali:Menu>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->

			<!-- TemplateBeginEditable name="广告位：下载 - 侧栏底部" -->
			<div class="Ad3">
				<ali:Ad Guid="{62A63501-DD5A-4b5b-BF42-0A14F39190A3}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad90.gif" alt="Ad" style="width:220px;height:148px" /></a>
				</ali:Ad>
			</div>
			<!-- TemplateEndEditable -->
		</div>
		<div class="Block6">
			<dl class="List7">
				<dt>
					<%If String.Equals(Convert.ToString(Download[Picture]), String.Empty)%>
						<!-- TemplateBeginEditable name="广告位：下载 - 下载信息侧面" -->
						<ali:Ad Guid="{C48E020F-3127-42cc-A667-A4A13E1122CD}">
							<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad14.jpg" alt="Ad" style="width:250px;height:250px" /></a>
						</ali:Ad>
						<!-- TemplateEndEditable -->
					<%Else%>
						<a href="<%=Download[Picture]%>"><img src="<%=Download[Picture]%>" alt="<%=Download[Name]%>" /></a>
					<%EndIf%>
				</dt>
				<dd><strong>名 称：</strong><%=Download[Name]%></dd>
				<dd><strong>大 小：</strong><%=CalcSize(Download[Size])%></dd>
				<dd><strong>语 言：</strong>
					<%If !Guid.Equals(Download[LanguageID], Guid.Empty)%>
						<a href="<%=BuildUrl("language", "PageTemplate=" + Download[LanguagePageTemplate] + "&ID=" + Download[LanguagePageID] + "&Ext=" + Download[LanguagePageExtension])%>" title="<%=Download[LanguageName]%>"><%=Download[LanguageName]%></a>
					<%EndIf%>
				</dd>
				<dd><strong>平 台：</strong>
					<ali:List Source="Manager.SplitToTable(Download[PlatformNames], Download[PlatformPageTemplates], Download[PlatformPageIDs], Download[PlatformPageExtensions])">
						<ali:Record>
							<a href="<%=BuildUrl("platform", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
						</ali:Record>
					</ali:List>
				</dd>
				<dd><strong>类 型：</strong>
					<%If !Guid.Equals(Download[TypeID], Guid.Empty)%>
						<a href="<%=BuildUrl("type", "PageTemplate=" + Download[TypePageTemplate] + "&ID=" + Download[TypePageID] + "&Ext=" + Download[TypePageExtension])%>" title="<%=Download[TypeName]%>"><%=Download[TypeName]%></a>
					<%EndIf%>
				</dd>
				<dd><strong>授 权：</strong>
					<%If !Guid.Equals(Download[LicenseID], Guid.Empty)%>
						<a href="<%=BuildUrl("license", "PageTemplate=" + Download[LicensePageTemplate] + "&ID=" + Download[LicensePageID] + "&Ext=" + Download[LicensePageExtension])%>" title="<%=Download[LicenseName]%>"><%=Download[LicenseName]%></a>
					<%EndIf%>
				</dd>
				<dd><strong>更 新：</strong><%=Download[UpdateTime]%></dd>
				<dd><strong>人 气：</strong><span id="HitCount"></span></dd>
				<dd><strong>下 载：</strong><span id="DownCount"></span></dd>
				<dd><strong>标 签：</strong>
					<ali:List Source="Manager.SplitToTable(Download[TagNames], Download[TagPageTemplates], Download[TagPageIDs], Download[TagPageExtensions])">
						<ali:Record>
							<a href="<%=BuildUrl("tag", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
						</ali:Record>
					</ali:List>
				</dd>
				<dd>
					<p><a href="" id="Up"><img src="<%=ImagePath%>up.gif" alt="顶" /> 顶 (<span></span>)</a> <a href="" id="Down"><img src="<%=ImagePath%>down.gif" alt="踩" /> 踩 (<span></span>)</a></p>
				</dd>
			</dl>
			<h2 class="H2">详细介绍</h2>
			<div class="Block9"><%=Download[Description]%></div>
							
			<!-- TemplateBeginEditable name="广告位：下载 - 下载地址上方" -->
			<div class="Ad10">
				<ali:Ad Guid="{73B7F6F3-B787-48f9-957B-3EDE248F62BE}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad17.jpg" alt="Ad" style="width:468px;height:60px" /></a>
				</ali:Ad>
			</div>
			<!-- TemplateEndEditable -->
			
			<h2 class="H2">下载地址</h2>
			<div class="Block7">
				<ali:List Object="Download.Url" Condition="DownloadID=Download[ID]">
					<ul>
						<ali:Record>
							<li><a href="<%=BuildUrl("url")%>" target="_blank" title="<%=Name%>"><%=Name%></a></li>
						</ali:Record>
					</ul>
				</ali:List>
			</div>
		
			<%If Convert.ToBoolean(Config[EnableComment])%>
				<h2 class="H2">
					<span class="Left">网友评论（<span id="CommentCount">0</span>）</span>
					<span class="Right"><a href="javascript:;" id="WriteComment">我也要写评论</a></span>
				</h2>
				<div class="Block8">
					<!-- TemplateBeginEditable name="评论列表" -->
					<div id="Comment"></div>
					<!-- TemplateEndEditable -->
								
					<!-- TemplateBeginEditable name="广告位：下载 - 评论下方" -->
					<div class="Ad15">
						<ali:Ad Guid="{AFEE5A5D-7CEE-4ca8-9AFB-D42C5E858E69}">
							<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad17.jpg" alt="Ad" style="width:468px;height:60px" /></a>
						</ali:Ad>
					</div>
					<!-- TemplateEndEditable -->
					
					<!-- TemplateBeginEditable name="评论表单" -->
					<form id="CommentForm" action="">
						<textarea name="Content" cols="74" rows="7" class="<%=PageLang%>Font"></textarea><br />
						<%If Manager.HasRight("", InstanceID, PageLang, "DownloadComment", "Add")%>
							<input type="checkbox" name="Anonymous" id="Anonymous" checked="checked" /><label for="Anonymous">匿名</label>
						<%Else%>
							<input type="checkbox" name="Anonymous" id="Anonymous" style="display:none" />
						<%EndIf%>
						用户名：<input type="text" size="20" name="Name" class="<%=PageLang%>Font" />
						<label id="PasswordLabel">密码：<input type="password" size="20" name="Password" class="CHSFont" /></label>
						<%If UserChannel != null%>
							<a href="<%=BuildUrl(UserChannel, "register", null)%>" target="_blank" title="新用户">新用户?</a>
						<%EndIf%>
						<input type="submit" value="提交评论" />
						<input type="hidden" name="ToID" />
					</form>
					<!-- TemplateEndEditable -->
				</div>		
			<%EndIf%>
		</div>
	</div>
</div>	

<!-- TemplateBeginEditable name="广告位：下载 - 网页底部" -->
<div class="Wrap">
	<div class="Ad9">
		<ali:Ad Guid="{07CC2E92-DEA7-4b49-9B62-E5A841DD36BF}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad9.jpg" alt="Ad" style="width:980px;height:70px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="友情连接" -->
<ali:List Mark="System" Object="Link" Condition="IsChecked=true">
	<div class="Wrap">
		<div class="Link">
			<h1>友情链接</h1>
			<ul>
				<ali:Record>
					<li>
						<%If Convert.IsDBNull(Logo)%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><%=Name%></a>
						<%Else%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><img src="<%=Logo%>" alt="<%=Name%>" /></a>
						<%EndIf%>
					</li>
				</ali:Record>
			</ul>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Footer">
		<!-- TemplateBeginEditable name="脚注菜单" -->
		<ali:Menu Condition="IsDisplay=true and CategoryID={BAC035A8-F6BB-4772-8D51-A7F4F3AB7AD3}">
			<ali:Record>
				<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
			<hr size="1" />
		</ali:Menu>
		<!-- TemplateEndEditable -->
	
		<%=Footer%>
	</div>
</div>

<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<%=StatisticsCode%>
</body>
</html>
